/*
 * PredictionFileTextFormat.h
 *
 *  Created on: Dec 4, 2014
 *      Authors: Avihay Avitan & Stefan Farcas
 */
#include "IFileFormat.h"

#ifndef PREDICTIONFILETEXTFORMAT_H_
#define PREDICTIONFILETEXTFORMAT_H_

using namespace std;
using namespace re2;

namespace TextFileParserSpace {
/**
 * enum class defines the enums for lines that matched for this text format
 */
enum class PredictionFileLines { none = 0, satId = 1 , access = 2 , aer = 3 , end = 4 };


/**
 * PredictionFileTextFormat - an implementation of IFileFormat that defines the text format for prediction file
 */
class PredictionFileTextFormat : public IFileFormat{
public:
	PredictionFileTextFormat();
	virtual ~PredictionFileTextFormat();
	int getLineMatchedByFormat(string line);

private:
	string satId_1st;
	string access_2nd;
	string aer_3rd;
	string delimiter_last;
	int state;
};

} /* namespace TextFileParserSpace */

#endif /* PREDICTIONFILETEXTFORMAT_H_ */
